<?php
namespace app\index\model;

use think\Model;

class User extends Model
{
    public function add(){
        $user           = new User;
        $user->name     = 'thinkphp';
        $user->save();
    }

}
